<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Model;

class WashJob extends Model
{
    protected $table = 'mckj_washjob';

    protected $fillable = ['carbarnId', 'userId', 'process', 'progress', 'addTime', 'isStopped', 'stopTime', 'finishTime'];

    public $timestamps = false;

    public function user()
    {
        return $this->belongsTo(User::class, "userId");
    }

    public function carbarn()
    {
        return $this->belongsTo(Carbarn::class, "carbarnId");
    }
}
